package com.boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;


@Accessors(chain = true)
@Data
@TableName(value = "t_user")
public class User {

    private static final long serialVersionUID = 1L;

    /** 主键ID **/
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /** 入库时间 **/
    @TableField(value = "addTime")
    private Date addTime;


    /** 用户 **/
    @TableField(value = "userName")
    private String userName;

    /** 密码 **/
    @TableField(value = "password")
    private String password;
}
